﻿using smforj.common.service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MonitorEquipmentFrm
{
    /// <summary>
    /// 工厂类
    /// </summary>
    public class ServiceFactory
    { 
        /// <summary>
        ///  创建Monitor对象
        /// </summary>
        /// <param name="dtype">设备类型</param> 
        /// <returns></returns>
        public static IWardRobeService CreateWardRobeService(WRServiceType dtype)
        {
            IWardRobeService service = null;
            switch (dtype)
            {
                case WRServiceType.DXT:
                    service = new DxtWardRobeServiceImpl();
                    break; 

                default:
                    service = new WardRobeServiceImpl();
                    break;
            }
            return service;
        }
    }
}
